Option Strict Off
Option Explicit On

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Windows.Forms
Imports System
Imports System.ComponentModel


Namespace CRMReports

    Public Class CRMReport
        Inherits ReportClass

        Public Sub New()
            MyBase.New()
        End Sub

        Private _ReportName As String

        Public Property ReportName() As String
            Get
                Return _ReportName
            End Get
            Set(ByVal Value As String)
                _ReportName = Value
            End Set
        End Property


        Public Overrides Property ResourceName() As [String]
            Get
                Return Environment.CurrentDirectory & Me.ReportName
            End Get
            Set(ByVal value As [String])

            End Set
        End Property


        <Browsable(False), _
         DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
        Public ReadOnly Property Section1() As Section
            Get
                Return Me.ReportDefinition.Sections(0)
            End Get
        End Property

        <Browsable(False), _
         DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
        Public ReadOnly Property Section2() As Section
            Get
                Return Me.ReportDefinition.Sections(1)
            End Get
        End Property

        <Browsable(False), _
         DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
        Public ReadOnly Property Section3() As Section
            Get
                Return Me.ReportDefinition.Sections(2)
            End Get
        End Property

        <Browsable(False), _
         DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
        Public ReadOnly Property Section4() As Section
            Get
                Return Me.ReportDefinition.Sections(3)
            End Get
        End Property

        <Browsable(False), _
         DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
        Public ReadOnly Property Section5() As Section
            Get
                Return Me.ReportDefinition.Sections(4)
            End Get
        End Property

    End Class


End Namespace

